<?php use_stylesheets_for_form($form) ?>
<?php use_javascripts_for_form($form) ?>

<form action="<?php echo url_for('accounts/'.($form->getObject()->isNew() ? 'create' : 'update').(!$form->getObject()->isNew() ? '?id_account='.$form->getObject()->getIdAccount() : '')) ?>" method="post" <?php $form->isMultipart() and print 'enctype="multipart/form-data" ' ?>>
<?php if (!$form->getObject()->isNew()): ?>
<input type="hidden" name="sf_method" value="put" />
<?php endif; ?>
<?php echo $form->renderGlobalErrors() ?>

<span class="nombre-campo"><?php echo $form['account_name']->renderLabel() ?><?php echo $form['account_name']->renderError() ?>
          <?php echo $form['account_name'] ?></span><br />
<span class="nombre-campo"><?php echo $form['company_name']->renderLabel() ?><?php echo $form['company_name']->renderError() ?>
          <?php echo $form['company_name'] ?></span><br />
<span class="nombre-campo"><?php echo $form['company_name_url']->renderLabel() ?> <?php echo $form['company_name_url']->renderError() ?>
          <?php echo $form['company_name_url'] ?></span>
          <span class="nombre-campo-nota">* Only alphanumeric or dash characters. Lowercase. Example: my-company-name</span><br /><br />
          <span class="nombre-campo"><?php echo $form['contract_date']->renderLabel() ?> <?php echo $form['contract_date']->renderError() ?>
          <?php echo $form['contract_date'] ?></span><br />
          <span class="nombre-campo"><?php echo $form['contract_exp']->renderLabel() ?> <?php echo $form['contract_exp']->renderError() ?>
          <?php echo $form['contract_exp'] ?></span><br />
           <span class="nombre-campo"><?php echo $form['contract_term']->renderLabel() ?><?php echo $form['contract_term']->renderError() ?>
          <?php echo $form['contract_term'] ?></span><br />
           <span class="nombre-campo"><?php echo $form['ref_contact']->renderLabel() ?><?php echo $form['ref_contact']->renderError() ?>
          <?php echo $form['ref_contact'] ?></span><br />
           <span class="nombre-campo"><?php echo $form['shipping_address']->renderLabel() ?><?php echo $form['shipping_address']->renderError() ?>
          <?php echo $form['shipping_address'] ?></span><br />
          <span class="nombre-campo"><?php echo $form['shipping_state']->renderLabel() ?><?php echo $form['shipping_state']->renderError() ?>
          <?php echo $form['shipping_state'] ?></span><br />
          <span class="nombre-campo"><?php echo $form['shipping_city']->renderLabel() ?><?php echo $form['shipping_city']->renderError() ?>
          <?php echo $form['shipping_city'] ?></span><br />
          <span class="nombre-campo"><?php echo $form['shipping_zip']->renderLabel() ?> <?php echo $form['shipping_zip']->renderError() ?>
          <?php echo $form['shipping_zip'] ?></span><br />
           <span class="nombre-campo"><?php echo $form['billing_address']->renderLabel() ?><?php echo $form['billing_address']->renderError() ?>
          <?php echo $form['billing_address'] ?></span><br />
          <span class="nombre-campo"><?php echo $form['billing_state']->renderLabel() ?><?php echo $form['billing_state']->renderError() ?>
          <?php echo $form['billing_state'] ?></span><br />
           <span class="nombre-campo"><?php echo $form['billing_city']->renderLabel() ?><?php echo $form['billing_city']->renderError() ?>
          <?php echo $form['billing_city'] ?></span><br />
           <span class="nombre-campo"><?php echo $form['billing_zip']->renderLabel() ?><?php echo $form['billing_zip']->renderError() ?>
          <?php echo $form['billing_zip'] ?></span><br />
           <span class="nombre-campo"><?php echo $form['billing_phone']->renderLabel() ?><?php echo $form['billing_phone']->renderError() ?>
          <?php echo $form['billing_phone'] ?></span><br />
          <span class="nombre-campo"><?php echo $form['billing_email']->renderLabel() ?><?php echo $form['billing_email']->renderError() ?>
          <?php echo $form['billing_email'] ?></span><br />
          <span class="nombre-campo">
       <?php echo $form['billing_email2']->renderLabel() ?>
        
          <?php echo $form['billing_email2']->renderError() ?>
          <?php echo $form['billing_email2'] ?>
       </span><br />
          <span class="nombre-campo"><?php echo $form['billing_contact']->renderLabel() ?>
          <?php echo $form['billing_contact']->renderError() ?>
          <?php echo $form['billing_contact'] ?>
      </span><br />
          <span class="nombre-campo"> <?php echo $form['account_comments']->renderLabel() ?>
          <?php echo $form['account_comments']->renderError() ?>
          <?php echo $form['account_comments'] ?>
      </span><br />
          <span class="nombre-campo"><?php echo $form['company_logo']->renderLabel() ?>
          <?php echo $form['company_logo']->renderError() ?>
          <?php echo $form['company_logo'] ?>
 </span><br />
          <span class="nombre-campo"></span><br />


 
          <?php echo $form->renderHiddenFields(false) ?>
          &nbsp;<a href="<?php echo url_for('accounts/index') ?>">Back to list</a>
          <?php if (!$form->getObject()->isNew()): ?>
            &nbsp;<?php echo link_to('Delete', 'accounts/delete?id_account='.$form->getObject()->getIdAccount(), array('method' => 'delete', 'confirm' => 'Are you sure?')) ?>
          <?php endif; ?> &nbsp; <input type="submit" value="Save" class="button-enter" />
 
</form>
